import request from '@/utils/request'

export async function edgePageQuery(edge, paginator) {
  return await request({
    url: '/bicAdmin/edge/query',
    method: 'post',
    data: {
      'edge': edge,
      'paginator': paginator
    }
  })
}

export async function edgeSave(edge) {
  return await request({
    url: '/bicAdmin/edge/save',
    method: 'post',
    data: edge
  })
}

export async function remoteValidateEdgeName(systemUuid, name) {
  return await request({
    url: '/bicAdmin/edge/validateName/' + systemUuid + '/' + name,
    method: 'get',
  })
}

export async function remoteValidatesEdgeKey(systemUuid, key) {
  return await request({
    url: '/bicAdmin/edge/validateKey/' + systemUuid + '/' + key,
    method: 'get',
  })
}
